gtk: fix wheel scrolling for very small adjustment page_size
authorMichael Natterer <mitch@gimp.org>
Mon, 11 Jun 2018 16:36:50 +0000 (18:36 +0200)
committerMichael Natterer <mitch@gimp.org>
Tue, 12 Jun 2018 16:53:12 +0000 (18:53 +0200)
commitc0ba041c73214f82d2c32b2ca1fa8f3c388c6170
tree5846a7db0a47ccab783df2cfcab9158921dff69a
parent2c8b95a518bea2192145efe11219f2e36091b37a
gtk: fix wheel scrolling for very small adjustment page_size

For very small page sizes of < 1.0, the effect of pow() is the
opposite of what's intended and the scroll steps become unusably
large, make sure we never get a scroll_unit larger than page_size /
2.0, which used to be the default before the pow() magic was
introduced.
gtk/gtkrange.c
gtk/gtkscrolledwindow.c